using Microsoft.Xna.Framework.Graphics;

namespace CthulhuDomain.GameEntities
{
  public class BangFactory : DomainFactory
  {
    public override DomainEntity CreateEntity(IContentManager manager)
    {
      return CreateEntity(manager, new BangState
      {
        LifePoints = 1,
        StartingPosition = new Vector2Adapter(0, 0)
      });
    }

    public override DomainEntity CreateEntity(IContentManager manager, EntityState state)
    {
      var entity =  new Bang(state.StartingPosition) { LifePoint = state.LifePoints, Texture = manager.LoadTexture("Boom") };
      entity.MovementStrategy = new Strategies.VerticalMovement(entity);
      return entity;
    }
  }

}